﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DAL.Translator
{
    /// <summary>
    /// Define Department Translator
    /// </summary>
    public class DepartmentTranslator
    {
        /// <summary>
        /// To Translate DepartmentDataEntity to DepartmentBusinessEntity
        /// </summary>
        /// <param name="department"></param>
        /// <returns></returns>
        public static BLL.Department TranslateEntityToBusiness(DAL.Department department)
        {
            BLL.Department Department = new BLL.Department();
            Department.DepartmentId = department.DepartmentId;
            Department.DepartmentName = department.DepartmentName;
            return Department;
        }
        /// <summary>
        /// To Translate DepartmentBusinessEntity to DepartmentDataEntity
        /// </summary>
        /// <param name="department"></param>
        /// <returns></returns>
        public static DAL.Department TranslateBusinessToEntity(BLL.Department department)
        {
            DAL.Department Department = new DAL.Department();
            Department.DepartmentId = department.DepartmentId;
            Department.DepartmentName = department.DepartmentName;
            return Department;
        }
    }
}
